package com.mk.common.util;

import java.util.Arrays;
import java.util.List;

import org.junit.Test;


public class LambdaUtil {

	@Test
	public void test1() {
		List<String> list = Arrays.asList("as","sd","你说","萨达");
//		for(String str: list) {
//			System.out.println(str);
//		}
		
		/**
		 * Lambda 迭代
		 */
		list.forEach(str->System.out.println(str) );
//		list.forEach(System.out::println);
	}
}
